package org.framework.edge.builder.domain.model.docker.repository.backup.record;

import org.wu.framework.web.response.Result;
import org.wu.framework.web.response.ResultFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.framework.edge.builder.domain.model.docker.repository.backup.record.DockerRepositoryBackupRecord;
import java.util.List;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
/**
 * describe Docker仓库备份记录 
 *
 * @author Jia wei Wu
 * @date 2025/07/10 08:18 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository 
 **/

public interface DockerRepositoryBackupRecordRepository {


    /**
     * describe 新增Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecord 新增Docker仓库备份记录     
     * @return {@link  Result<DockerRepositoryBackupRecord>} Docker仓库备份记录新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> story(DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

    /**
     * describe 批量新增Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordList 批量新增Docker仓库备份记录     
     * @return {@link Result<List<DockerRepositoryBackupRecord>>} Docker仓库备份记录新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<List<DockerRepositoryBackupRecord>> batchStory(List<DockerRepositoryBackupRecord> dockerRepositoryBackupRecordList);

    /**
     * describe 查询单个Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecord 查询单个Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecord>} Docker仓库备份记录DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> findOne(DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

    /**
     * describe 查询多个Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecord 查询多个Docker仓库备份记录     
     * @return {@link Result<List<DockerRepositoryBackupRecord>>} Docker仓库备份记录DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<List<DockerRepositoryBackupRecord>> findList(DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

    /**
     * describe 分页查询多个Docker仓库备份记录
     *
     * @param size 当前页数
     * @param current 当前页
     * @param dockerRepositoryBackupRecord 分页查询多个Docker仓库备份记录     
     * @return {@link Result<LazyPage<DockerRepositoryBackupRecord>>} 分页Docker仓库备份记录领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<LazyPage<DockerRepositoryBackupRecord>> findPage(int size,int current,DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

    /**
     * describe 删除Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecord 删除Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecord>} Docker仓库备份记录     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> remove(DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

    /**
     * describe 是否存在Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecord 是否存在Docker仓库备份记录     
     * @return {@link Result<Boolean>} Docker仓库备份记录是否存在     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<Boolean> exists(DockerRepositoryBackupRecord dockerRepositoryBackupRecord);

}